package com.ysstech.system.feign;


import com.ysstech.common.util.resultutil.RestResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "yss-activiti", fallback = FeignActivitiServiceFallback.class)
public interface FeignActivitiService {

    /**
     * 启动流程
     *
     * @param key
     * @param id
     * @return
     */
    @RequestMapping(value = "/activitiRuntime/startProcessFlow", method = RequestMethod.GET)
    public RestResult startProcessFlow(@RequestParam("userId")String userId,@RequestParam("key") String key, @RequestParam("id") String id);

}
